gotoshequn = function(des, obj) {
	
	mui.openWindow({
		url: des,
		extras: {
			shequnid: $(obj).data("postid")
		}
	});
}

var

shequnlist = function(data,obj) {
	
		for(var key in data) {
			//var dom = '<li onclick="gotoshequn(\'sub_community_tieba.html\',this)" data-postid="'+data[key].fakeid+'" class="mui-table-view-cell mui-media">\
			//				<a href="javascript:;">\
			//					<img id="headurl" class="mui-media-object mui-pull-left" src="'+data[key].headurl+'">\
			//					<div class="mui-media-body">\
			//						<p id="title">'+data[key].title+'</p>\
			//						<p id="summary" class="mui-ellipsis">'+data[key].summary+'</p>\
			//						 <button type="button" class="mui-btn">帖子<span id="postcount" class="mui-badge">'+data[key].postcount+'</span></button>\
			//						 <button type="button" class="mui-btn">关注<span id="fans" class="mui-badge">'+data[key].fans+'</span></button>\
			//					</div>\
			//				</a>\
			//			</li>';
			var dom2 = '<li id="'+data[key].fakeid+'" onclick="gotoshequn(\'sub_community_tieba.html\',this);" data-postid="'+data[key].fakeid+'" class="mui-table-view-cell mui-media">' +
							'<a href="javascript:void(0);" class="">' +
								'<img class="mui-media-object mui-pull-left" src="'+data[key].headurl+'">' +
								'<div class="mui-media-body my-box">' +
									'<p class="Title_Name">'+data[key].title+'</p>' +
									'<p class="mui-ellipsis Title_Text">'+data[key].summary+'</p>' +
									'<div class="box-go">进群</div>' +
								'</div>' +
								'<div class="mui-media-body tie-number">' +
									'<span href="#">关注:'+data[key].fans+'</span>' +
									'<span href="#">帖子:'+data[key].postcount+'</span>' +
								'</div>' +
							'</a>' +
						'</li>';
			$(obj).append(dom2);
		}
}


gotoerror = function() {

		var dom = '<div style="text-align:center;margin-top:30px;color:grey;"> \
						关注加载中...请下拉刷新\
					</div>';
		$("#spread").append(dom);

}

